import fetch from 'utils/fetch'

export default { // 订单接口
  list (params) { // 订单列表
    return fetch({
      url: '/order/user/queryOrderList',
      params: params
    })
  },
  detail (params) { // 订单详情
    return fetch({
      url: '/order/user/queryOrderDetail',
      params: params
    })
  },
  amount (params) { // 订单列表总金额
    return fetch({
      url: '/order/user/goodsOrderReq',
      params: params
    })
  }
}
